package ar.edu.unq.wannaplay.dtos;

import java.util.Map;

public class EmployeeLicenceDTO extends DTO {
    private static final long serialVersionUID = 1L;

    private String name;

    private Map<Integer, String> licences;

    public EmployeeLicenceDTO() {
        super();
    }

    public EmployeeLicenceDTO(final String name, final Map<Integer, String> licences) {
        this.name = name;
        this.licences = licences;
    }

    @Override
    public Object fromDto() {
        throw new UnsupportedOperationException();
    }

    public String getName() {
        return name;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public String getHoliday(final int day) {
        if (licences.containsKey(day)) {
            return licences.get(day);
        }
        return null;
    }
}
